<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Insert title here</title>

    <%@include file="/include.jsp" %>
    <script type="text/javascript" src="<%=basePath %>js/My97DatePicker/WdatePicker.js"></script>
    <style>
        body{font-family:"微软雅黑";padding-top:10px;margin:0px;}
    </style>
    <script>



    </script>
</head>
<body>
<div>
    <!--tab-->
    <ul class="nav nav-pills nav-justified" style="border-bottom:solid 3px rgb(66, 139, 202);">
        <li  class="active" role="presentation" style="width:120px;">
            <a href="javascript:void(0)" id="tabTitle" >采购计划申请目录</a>
        </li>
    </ul>
    <input type="hidden" value="<%=basePath %>" id="path">

    <!--datagrid-->
    <div class="table-responsive" style="overflow-y:hidden">
        <table class="table table-striped" >
            <tbody>
            <tr>
                <th>序号</th><th>单据编号</th><th>创建日期</th> <th>煤种</th><th>数量(万吨)</th><th>结算方式</th><th>发起人</th><th>状态</th><th>操作</th>
            </tr>
            <c:forEach items="${rows}" var="e">
                <tr>
                    <td>${e.purchapplyid}</td><td>${e.billnumber}</td><td>${e.createdate}</td> <td>${e.coaltype}</td> <td>${e.qty}</td><td>${e.jiesuanMode}</td><td>${e.createuser}</td><td>${e.applystate}</td><td><c:if test="${e.applystate=='审批中'}"><a href="<%=basePath%>detailTFultbpurchasingapply?id=${e.purchapplyid}">查看</a></c:if><c:if test="${e.applystate=='已发布'}"><a href="<%=basePath%>detailTFultbpurchasingapply?id=${e.purchapplyid}">查看</a></c:if><c:if test="${e.applystate=='草稿'}"><a href="<%=basePath%>update?id=${e.purchapplyid}">修改</a><a href="<%=basePath%>deleteTFultbpurchasingapply?id=${e.purchapplyid}"> 删除</a></c:if></td>
                </tr>
            </c:forEach>
            </tbody>
        </table>
        <!--分页-->
        <nav  >
            <ul class="pagination"  >
                <li class=""><a  href="<%=basePath %>selectTFultbpurchasingapply?pageNow=1" onmouseout="pageOut(this)" onmouseover="pageOver(this)"  >首页 <span class="sr-only">首页</span></a></li>
                <li class=""><a href="<%=basePath %>selectTFultbpurchasingapply?pageNow=${page.pageNow-1}"  onmouseout="pageOut(this)" onmouseover="pageOver(this)" aria-label="Previous"  ><span aria-hidden="true">上一页&laquo;</span></a></li>
                <li class=""><a href="<%=basePath %>selectTFultbpurchasingapply?pageNow=${page.pageNow+1}" onmouseout="pageOut(this)" onmouseover="pageOver(this)" aria-label="Previous"  ><span aria-hidden="true">下一页&raquo;</span></a></li>
                <li class=""><a href="<%=basePath %>selectTFultbpurchasingapply?pageNow=${page.totalPage}" onmouseout="pageOut(this)" onmouseover="pageOver(this)"  >尾页 <span class="sr-only" >尾页</span></a></li>
                <li class=""><a href="javascript:void(0)" >当前第${page.pageNow}页
                     总页数：${page.totalPage}页  总记录数：${page.total}</a></li>

            </ul>
        </nav>
    </div>

</div>
</body>



</html>
